package com.aji.alluser.mapper;


import com.aji.alluser.domain.RoleUser;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
* @author 82527
* @description 针对表【role_user(角色用户表)】的数据库操作Mapper
* @createDate 2024-04-15 10:53:58
* @Entity com.aji.wineserver.domain.RoleUser
*/
@Mapper
public interface RoleUserMapper extends BaseMapper<RoleUser> {

    @Select("select role_id from role_user where user_id = #{id}")
    List<Integer> getRoleById(Long id);
}




